1 <?
2 //Check user
's Browser
3 if
(strpos($_SERVER["HTTP_USER_AGENT"],"MSIE"))
4     echo
"<script language=JavaScript src='../inv/scripts/editor.js'></script>";
5 else

6     echo
"<script language=JavaScript src='../inv/scripts/moz/editor.js'></script>";
7 ?>
8 <script type=
"text/javascript" src="/quantri/js/jquery-upload.js"></script>
9 <script type=
"text/javascript">
10
11     
12 $(document).ready(function(){

13
14 var
id = 1;
15
16 $(
'.thumb').each(
17    function() {
18      $(
this).attr('id', 'thumb' + id);
19     id++;
20
21     
new AjaxUpload($(this).attr('id'), {
22         action:
'/quantri/upload-admin.php?fieldname=image'+$(this).attr('id'),
23         name:
'image'+$(this).attr('id'), // name: 'image'+$(this).attr('id'),
24         onSubmit: function(file, extension) {
25         
26             
var targetid = this._settings.name.replace("imagethumb", "");
27         
28             
if (!(extension && /^(jpg|png|jpeg|gif)$/i.test(extension))){
29                         
// extension is not allowed
30                         alert(
'Error: invalid file extension');
31                         
// cancel upload
32                         
return false;
33                 }
34             
else {
35                 
36                 $(
'img#thumb'+targetid).closest('div.preview').addClass('loading');
37             }
38         },
39         onComplete: function(file, response) {
40
41             
var targetid = this._settings.name.replace("imagethumb", "");
42             
43             $(
'img#thumb'+targetid).load(function(){
44                 $(
'img#thumb'+targetid).closest('div.preview').removeClass('loading');
45                 $(
'img#thumb'+targetid).unbind();
46             });
47             $(
'img#thumb'+targetid).attr('src', response);
48             $(
'input#imagefield'+targetid).remove();
49             $(
'img#thumb'+targetid).after('<input class="thumbfield" type="hidden" name="imagefield'+targetid+'" id="imagefield'+targetid+'" value="'+response+'" />');
50
51         }
52     });
53 });
54
55 });
56
57
58
59 </script>
60 <script>
61 function submitForm()
62     {
63     document.forms.FormLoaiSP.elements.txtDesc.
value = oEdit1.getHTMLBody();
64         document.forms.FormLoaiSP.elements.txtDescen.
value = oEdit2.getHTMLBody();
65     document.forms.FormLoaiSP.submit();
66     }
67 </script>
68
69 <?
70 $path =
"../images/products";
71 $pathdb =
"images/products";
72 if
(isset($_POST['butSaveLoai'])) {
73     $code=$_POST[
'code'];
74     $name=$_POST[
'name'];
75     $nguoimua=$_POST[
'nguoimua'];
76     $view=$_POST[
'view'];
77     
78     $baohanh=$_POST[
'baohanh'];
79     $status=$_POST[
'status'];
80     $noibat=$_POST[
'noibat'];
81     $tinhtrang=$_POST[
'tinhtrang'];
82     $khoiluong=$_POST[
'khoiluong'];
83     $uptop=$_POST[
'uptop'];
84     $upxuhuong=$_POST[
'upxuhuong'];
85     $topxuhuong=$_POST[
'topxuhuong'];
86     $topkhuyenmai=$_POST[
'topkhuyenmai'];
87     
88      $mausac_nau = ($_POST[
'mausac_nau']!=''?"804000":"");
89      $mausac_vang = ($_POST[
'mausac_vang']!=''?"ffff00":"");
90      $mausac_trang = ($_POST[
'mausac_trang']!=''?"ffffff":"");
91      $mausac_den = ($_POST[
'mausac_den']!=''?"000002":"");
92      $mausac_hong = ($_POST[
'mausac_hong']!=''?"ff00ff":"");
93      $mausac_xanhla = ($_POST[
'mausac_xanhla']!=''?"20ff00":"");
94      $mausac_xanhnuocbien = ($_POST[
'mausac_xanhnuocbien']!=''?"2080ff":"");
95      $mausac_xanhngoc = ($_POST[
'mausac_xanhngoc']!=''?"20ffff":"");
96      $mausac_xanhden = ($_POST[
'mausac_xanhden']!=''?"112c4e":"");
97  $mausac_xam = ($_POST[
'mausac_xam']!=''?"999999":"");
98   $mausac_tim = ($_POST[
'mausac_tim']!=''?"800080":"");
99    $mausac_do = ($_POST[
'mausac_do']!=''?"ff2000":"");
100     $mausac_cam = ($_POST[
'mausac_cam']!=''?"ff8040":"");
101      $mausac_kem = ($_POST[
'mausac_kem']!=''?"fef2ce":"");
102      $mausac_xanhduong = ($_POST[
'mausac_xanhduong']!=''?"2522c5":"");
103       $mausac_soc = ($_POST[
'mausac_soc']!=''?"mul-color.gif":"");
104        $mausac_xanhladam = ($_POST[
'mausac_xanhladam']!=''?"007000":"");
105        $mausac_hoatiet = ($_POST[
'mausac_hoatiet']!=''?"floral.jpg":"");
106        $mausac_bac = ($_POST[
'mausac_bac']!=''?"cccccc":"");
107        $mausac_hongphan = ($_POST[
'mausac_hongphan']!=''?"ffc2cb":"");
108        
109 $kichthuoc_freesize = ($_POST[
'kichthuoc_freesize']!=''?"freesize":"");
110 $kichthuoc_1 = ($_POST[
'kichthuoc_1']!=''?"1":"");
111 $kichthuoc_2 = ($_POST[
'kichthuoc_2']!=''?"2":"");
112 $kichthuoc_3 = ($_POST[
'kichthuoc_3']!=''?"3":"");
113 $kichthuoc_4 = ($_POST[
'kichthuoc_4']!=''?"4":"");
114 $kichthuoc_5 = ($_POST[
'kichthuoc_5']!=''?"5":"");
115 $kichthuoc_6 = ($_POST[
'kichthuoc_6']!=''?"6":"");
116 $kichthuoc_7 = ($_POST[
'kichthuoc_7']!=''?"7":"");
117 $kichthuoc_8 = ($_POST[
'kichthuoc_8']!=''?"8":"");
118 $kichthuoc_9 = ($_POST[
'kichthuoc_9']!=''?"9":"");
119 $kichthuoc_10 = ($_POST[
'kichthuoc_10']!=''?"10":"");
120 $kichthuoc_11 = ($_POST[
'kichthuoc_11']!=''?"11":"");
121 $kichthuoc_12 = ($_POST[
'kichthuoc_12']!=''?"12":"");
122 $kichthuoc_S = ($_POST[
'kichthuoc_S']!=''?"S":"");
123 $kichthuoc_M = ($_POST[
'kichthuoc_M']!=''?"M":"");
124 $kichthuoc_L = ($_POST[
'kichthuoc_L']!=''?"L":"");
125 $kichthuoc_XL = ($_POST[
'kichthuoc_XL']!=''?"XL":"");
126 $kichthuoc_XXL = ($_POST[
'kichthuoc_XXL']!=''?"XXL":"");
127 $kichthuoc_XS = ($_POST[
'kichthuoc_XS']!=''?"XS":"");
128 $kichthuoc_XXS = ($_POST[
'kichthuoc_XXS']!=''?"XXS":"");
129 $kichthuoc_2XL = ($_POST[
'kichthuoc_2XL']!=''?"2XL":"");
130 $kichthuoc_3XL = ($_POST[
'kichthuoc_3XL']!=''?"3XL":"");
131 $kichthuoc_4XL = ($_POST[
'kichthuoc_4XL']!=''?"4XL":"");
132 $kichthuoc_5XL = ($_POST[
'kichthuoc_5XL']!=''?"5XL":"");
133 $kichthuoc_6XL = ($_POST[
'kichthuoc_6XL']!=''?"6XL":"");
134 $kichthuoc_25 = ($_POST[
'kichthuoc_25']!=''?"25":"");
135 $kichthuoc_26 = ($_POST[
'kichthuoc_26']!=''?"26":"");
136 $kichthuoc_27 = ($_POST[
'kichthuoc_27']!=''?"27":"");
137 $kichthuoc_28 = ($_POST[
'kichthuoc_28']!=''?"28":"");
138 $kichthuoc_29 = ($_POST[
'kichthuoc_29']!=''?"29":"");
139 $kichthuoc_30 = ($_POST[
'kichthuoc_30']!=''?"30":"");
140 $kichthuoc_31 = ($_POST[
'kichthuoc_31']!=''?"31":"");
141 $kichthuoc_32 = ($_POST[
'kichthuoc_32']!=''?"32":"");
142 $kichthuoc_33 = ($_POST[
'kichthuoc_33']!=''?"33":"");
143 $kichthuoc_34 = ($_POST[
'kichthuoc_34']!=''?"34":"");
144 $kichthuoc_35 = ($_POST[
'kichthuoc_35']!=''?"35":"");
145 $kichthuoc_36 = ($_POST[
'kichthuoc_36']!=''?"36":"");
146 $kichthuoc_37 = ($_POST[
'kichthuoc_37']!=''?"37":"");
147 $kichthuoc_38 = ($_POST[
'kichthuoc_38']!=''?"38":"");
148 $kichthuoc_39 = ($_POST[
'kichthuoc_39']!=''?"39":"");
149 $kichthuoc_40 = ($_POST[
'kichthuoc_40']!=''?"40":"");
150 $kichthuoc_41 = ($_POST[
'kichthuoc_41']!=''?"41":"");
151 $kichthuoc_42 = ($_POST[
'kichthuoc_42']!=''?"42":"");
152 $kichthuoc_43 = ($_POST[
'kichthuoc_43']!=''?"43":"");
153 $kichthuoc_44 = ($_POST[
'kichthuoc_44']!=''?"44":"");
154 $kichthuoc_45 = ($_POST[
'kichthuoc_45']!=''?"45":"");
155 $kichthuoc_46 = ($_POST[
'kichthuoc_46']!=''?"46":"");
156 $kichthuoc_47 = ($_POST[
'kichthuoc_47']!=''?"47":"");
157     
158     $user=$_POST[
'user'];
159     $price=(
int)$_POST['txtPrice'];
160     $priceen=(
int)$_POST['txtPriceen'];
161     $shortdesc=$_POST[
'txtShortDesc'];
162     $desc=$_POST[
'txtDesc'];
163     $cat=$_POST[
'cat'];
164     $trogia=$_POST[
'trogia'];
165     $upnoibat=$_POST[
'upnoibat'];
166     $upkhuyenmai=$_POST[
'upkhuyenmai'];
167     $upvt6=$_POST[
'upvt6'];
168     $tukhoaseo=$_POST[
'tukhoaseo'];
169     $tieudeseo=$_POST[
'tieudeseo'];
170     $motaseo=$_POST[
'motaseo'];
171     $link=$_POST[
'link'];
172     $imageadmin=$_POST[
'imagefield1'];
173 date_default_timezone_set(
"Asia/Ho_Chi_Minh");
174     $date = date(
"d-m-Y H:i:s");
175     $sort = $_POST[
'txtSortOrder'];
176
177     $catinfo=GetCategoryInfo($categories_id);
178     $err=
"";
179     
if ($name=="") $err .= "Xin nh&#7853;p tên s&#7843;n ph&#7849;m <br>";
180     $err.=CheckUpload($_FILES[
"txtImage"],".jpg;.gif;.png;.bmp",5000*1024,$_POST['id']==''?1:0);
181     $err.=CheckUpload($_FILES[
"txtImageLarge"],".jpg;.gif;.png;.bmp",5000*1024,0);
182
183     
if ($err=='')
184     {
185     
if (!empty($_POST['id'])) {
186             $oldid = $_POST[
'id'];
187             $sql =
"update products set date='".$date."',image='".$imageadmin."',tukhoaseo='".$tukhoaseo."',tieudeseo='".$tieudeseo."',motaseo='".$motaseo."',kichthuoc_freesize='".$kichthuoc_freesize."',kichthuoc_1='".$kichthuoc_1."',kichthuoc_2='".$kichthuoc_2."',kichthuoc_3='".$kichthuoc_3."',kichthuoc_4='".$kichthuoc_4."',kichthuoc_5='".$kichthuoc_5."',kichthuoc_6='".$kichthuoc_6."',kichthuoc_7='".$kichthuoc_7."',kichthuoc_8='".$kichthuoc_8."',kichthuoc_9='".$kichthuoc_9."',kichthuoc_10='".$kichthuoc_10."',kichthuoc_11='".$kichthuoc_11."',kichthuoc_12='".$kichthuoc_12."',kichthuoc_S='".$kichthuoc_S."',kichthuoc_M='".$kichthuoc_M."',kichthuoc_L='".$kichthuoc_L."',kichthuoc_XL='".$kichthuoc_XL."',kichthuoc_XXL='".$kichthuoc_XXL."',kichthuoc_XS='".$kichthuoc_XS."',kichthuoc_XXS='".$kichthuoc_XXS."',kichthuoc_2XL='".$kichthuoc_2XL."',kichthuoc_3XL='".$kichthuoc_3XL."',kichthuoc_4XL='".$kichthuoc_4XL."',kichthuoc_5XL='".$kichthuoc_5XL."',kichthuoc_6XL='".$kichthuoc_6XL."',kichthuoc_25='".$kichthuoc_25."',kichthuoc_26='".$kichthuoc_26."',kichthuoc_27='".$kichthuoc_27."',kichthuoc_28='".$kichthuoc_28."',kichthuoc_29='".$kichthuoc_29."',kichthuoc_30='".$kichthuoc_30."',kichthuoc_31='".$kichthuoc_31."',kichthuoc_32='".$kichthuoc_32."',kichthuoc_33='".$kichthuoc_33."',kichthuoc_34='".$kichthuoc_34."',kichthuoc_35='".$kichthuoc_35."',kichthuoc_36='".$kichthuoc_36."',kichthuoc_37='".$kichthuoc_37."',kichthuoc_38='".$kichthuoc_38."',kichthuoc_39='".$kichthuoc_39."',kichthuoc_40='".$kichthuoc_40."',kichthuoc_41='".$kichthuoc_41."',kichthuoc_42='".$kichthuoc_42."',kichthuoc_43='".$kichthuoc_43."',kichthuoc_44='".$kichthuoc_44."',kichthuoc_45='".$kichthuoc_45."',kichthuoc_46='".$kichthuoc_46."',kichthuoc_47='".$kichthuoc_47."', mausac_nau='".$mausac_nau."',mausac_vang='".$mausac_vang."',mausac_trang='".$mausac_trang."',mausac_den='".$mausac_den."',mausac_hong='".$mausac_hong."',mausac_xanhla='".$mausac_xanhla."',mausac_xanhnuocbien='".$mausac_xanhnuocbien."',mausac_xanhngoc='".$mausac_xanhngoc."',mausac_xanhden='".$mausac_xanhden."',mausac_xam='".$mausac_xam."',mausac_tim='".$mausac_tim."',mausac_do='".$mausac_do."',mausac_cam='".$mausac_cam."',mausac_kem='".$mausac_kem."',mausac_xanhduong='".$mausac_xanhduong."',mausac_soc='".$mausac_soc."',mausac_xanhladam='".$mausac_xanhladam."',mausac_hoatiet='".$mausac_hoatiet."',mausac_bac='".$mausac_bac."',mausac_hongphan='".$mausac_hongphan."', baohanh='".$baohanh."',status='".$status."',noibat='".$noibat."',tinhtrang='".$tinhtrang."',khoiluong='".$khoiluong."',uptop='".$uptop."',upxuhuong='".$upxuhuong."',topxuhuong='".$topxuhuong."',topkhuyenmai='".$topkhuyenmai."',code='".$code."', name='".$name."', nguoimua='".$nguoimua."', view='".$view."', user='".$user."', price='".$price."',price_special='".$priceen."', short='".$shortdesc."', content='".$desc."', cat='".$cat."', upnoibat='".$upnoibat."', upkhuyenmai='".$upkhuyenmai."', upvt6='".$upvt6."' where id='".$oldid."'";
188         }
else {
189             $sql =
"insert into products (city,code, name, image, price, price_special, short, content, cat, tinhtrang,khoiluong,baohanh, date, user,tukhoaseo,tieudeseo, motaseo,company,phone,address,mausac_nau,mausac_vang,mausac_trang,mausac_den,mausac_hong,mausac_xanhla,mausac_xanhnuocbien,mausac_xanhngoc ,mausac_xanhden ,mausac_xam ,mausac_tim ,mausac_do ,mausac_cam ,mausac_kem ,mausac_xanhduong ,mausac_soc ,mausac_xanhladam ,mausac_hoatiet ,mausac_bac ,mausac_hongphan,kichthuoc_freesize,kichthuoc_1,kichthuoc_2 ,kichthuoc_3 ,kichthuoc_4 ,kichthuoc_5 ,kichthuoc_6 ,kichthuoc_7 ,kichthuoc_8 ,kichthuoc_9 ,kichthuoc_10 ,kichthuoc_11 ,kichthuoc_12 ,kichthuoc_S ,kichthuoc_M ,kichthuoc_L ,kichthuoc_XL ,kichthuoc_XXL ,kichthuoc_XS ,kichthuoc_XXS ,kichthuoc_2XL ,kichthuoc_3XL ,kichthuoc_4XL ,kichthuoc_5XL ,kichthuoc_6XL ,kichthuoc_25 ,kichthuoc_26 ,kichthuoc_27 ,kichthuoc_28 ,kichthuoc_29 ,kichthuoc_30 ,kichthuoc_31 ,kichthuoc_32 ,kichthuoc_33 ,kichthuoc_34 ,kichthuoc_35 ,kichthuoc_36 ,kichthuoc_37 ,kichthuoc_38 ,kichthuoc_39 ,kichthuoc_40 ,kichthuoc_41 ,kichthuoc_42 ,kichthuoc_43 ,kichthuoc_44 ,kichthuoc_45 ,kichthuoc_46 ,kichthuoc_47) values ('".$citymoi."','".$code."','".$name."','".$imageadmin."','".$price."','".$priceen."','".$shortdesc."','".$desc."','".$cat."','".$tinhtrang."','".$khoiluong."','".$baohanh."','".$date."','".$user."', '".$tukhoaseo."', '".$tieudeseo."', '".$motaseo."', '".$company."', '".$phone."', '".$address."','".$mausac_nau."', '".$mausac_vang."', '".$mausac_trang."', '".$mausac_den."', '".$mausac_hong."', '".$mausac_xanhla."', '".$mausac_xanhnuocbien."', '".$mausac_xanhngoc."', '".$mausac_xanhden."', '".$mausac_xam."', '".$mausac_tim."', '".$mausac_do."', '".$mausac_cam."', '".$mausac_kem."', '".$mausac_xanhduong."', '".$mausac_soc."', '".$mausac_xanhladam."', '".$mausac_hoatiet."', '".$mausac_bac."', '".$mausac_hongphan."', '".$kichthuoc_freesize."', '".$kichthuoc_1."', '".$kichthuoc_2."', '".$kichthuoc_3."', '".$kichthuoc_4."', '".$kichthuoc_5."', '".$kichthuoc_6."', '".$kichthuoc_7."', '".$kichthuoc_8."', '".$kichthuoc_9."', '".$kichthuoc_10."', '".$kichthuoc_11."', '".$kichthuoc_12."', '".$kichthuoc_S."', '".$kichthuoc_M."', '".$kichthuoc_L."', '".$kichthuoc_XL."', '".$kichthuoc_XXL."', '".$kichthuoc_XS."', '".$kichthuoc_XXS."', '".$kichthuoc_2XL."', '".$kichthuoc_3XL."', '".$kichthuoc_4XL."', '".$kichthuoc_5XL."', '".$kichthuoc_6XL."', '".$kichthuoc_25."', '".$kichthuoc_26."', '".$kichthuoc_27."', '".$kichthuoc_28."', '".$kichthuoc_29."', '".$kichthuoc_30."', '".$kichthuoc_31."', '".$kichthuoc_32."', '".$kichthuoc_33."', '".$kichthuoc_34."', '".$kichthuoc_35."', '".$kichthuoc_36."', '".$kichthuoc_37."', '".$kichthuoc_38."', '".$kichthuoc_39."', '".$kichthuoc_40."', '".$kichthuoc_41."', '".$kichthuoc_42."', '".$kichthuoc_43."', '".$kichthuoc_44."', '".$kichthuoc_45."', '".$kichthuoc_46."', '".$kichthuoc_47."')";
190         }
191         
//echo $sql;
192         
//exit();
193         
if (mysql_query($sql,$con))
194         {
195             
if(empty($_POST['id'])) {
196                 $oldid = mysql_insert_id();
197                 }
198         
199             $sqlUpdateField =
"";
200             
201             $extsmall=GetFileExtention($_FILES[
'txtImage']['name']);
202             
if (MakeUpload($_FILES['txtImage'],"$path/product_s$oldid$extsmall"))
203             {
204                 @chmod(
"$path/product_s$oldid$extsmall", 0777);
205                 $sqlUpdateField =
" image='$pathdb/product_s$oldid$extsmall' ";
206             }
207
208             $extlarge=GetFileExtention($_FILES[
'txtImageLarge']['name']);
209             
if (MakeUpload($_FILES['txtImageLarge'],"$path/product_l$oldid$extlarge"))
210             {
211                 @chmod(
"$path/product_l$oldid$extlarge", 0777);
212                 
if($sqlUpdateField != "") $sqlUpdateField .= ",";
213                 $sqlUpdateField .=
" image_large='$pathdb/product_l$oldid$extlarge' ";
214             }
215             
if($sqlUpdateField!='')
216             {
217                 $sqlUpdate =
"update products set $sqlUpdateField where id='".$oldid."'";
218                 mysql_query($sqlUpdate,$con);
219             }
220         }
221         
else {
222             $err =
"Không th&#7875; c&#7853;p nh&#7853;t";
223         }
224     }
225
226     
if ($err=='') echo '<script>window.location="?act=product_m&cat=&status&id='.$_REQUEST['id'].'&page='.$_REQUEST['page'].'&code=1"</script>';
227     
else echo " ";
228 }
else {
229 ?>
230 <?php
231 $sql_config_user9999=mysql_query(
"SELECT * FROM user_shop where user='".$_REQUEST['user']."'");
232 $row_config_user9999=mysql_fetch_assoc($sql_config_user9999);
233 $company = $row_config_user9999[
'company'];
234 $phone = $row_config_user9999[
'phone'];
235 $address = $row_config_user9999[
'address'];
236 $sql_config_user=mysql_query(
"SELECT * FROM config_user where id=1");
237 $row_config_user=mysql_fetch_assoc($sql_config_user);
238 $sql_pro_config=mysql_query(
"SELECT * FROM products where user='".$_REQUEST['user']."'");
239 $toalt_pro=mysql_num_rows($sql_pro_config);
240 $citymoi = $row_config_user9999[
'city'];
241 ?>
242 <?
243     
if (isset($_GET['id'])) {
244         $oldid=$_GET[
'id'];
245         $page = $_GET[
'page'];
246         $sql =
"select * from products where id='".$oldid."'";
247         
if ($result = mysql_query($sql,$con)) {
248             $row=mysql_fetch_array($result);
249             $code=$row[
'code'];
250             $name=$row[
'name'];
251             $user=$row[
'user'];
252             $status=$row[
'status'];
253             $image=$row[
'image'];
254             $categories_id = $row[
'cat_mem'];
255             $imagelarge=$row[
'image_large'];
256             $price=$row[
'price'];
257             $priceen=$row[
'price_special'];
258             $shortdesc=$row[
'short'];
259             $desc1=$row[
'content'];
260             $provider_id=$row[
'cat'];
261             $sort = $row[
'thutu'];
262             $upnoibat = $row[
'upnoibat'];
263             $upkhuyenmai = $row[
'upkhuyenmai'];
264             $upvt6 = $row[
'upvt6'];
265             $link = $row[
'trogia_link'];
266             
267                 $mausac_nau=$row[
'mausac_nau'];
268             $mausac_vang=$row[
'mausac_vang'];
269             $mausac_trang=$row[
'mausac_trang'];
270             $mausac_den=$row[
'mausac_den'];
271             $mausac_hong=$row[
'mausac_hong'];
272             $mausac_xanhla=$row[
'mausac_xanhla'];
273             $mausac_xanhnuocbien=$row[
'mausac_xanhnuocbien'];
274             $mausac_xanhngoc=$row[
'mausac_xanhngoc'];
275             $mausac_xanhden=$row[
'mausac_xanhden'];
276             $mausac_xam=$row[
'mausac_xam'];
277             $mausac_tim=$row[
'mausac_tim'];
278             $mausac_do=$row[
'mausac_do'];
279             $mausac_cam=$row[
'mausac_cam'];
280             $mausac_kem=$row[
'mausac_kem'];
281             $mausac_xanhduong=$row[
'mausac_xanhduong'];
282             $mausac_soc=$row[
'mausac_soc'];
283             $mausac_xanhladam=$row[
'mausac_xanhladam'];
284             $mausac_hoatiet=$row[
'mausac_hoatiet'];
285             $mausac_bac=$row[
'mausac_bac'];
286             $mausac_hongphan=$row[
'mausac_hongphan'];
287             
288             $kichthuoc_freesize=$row[
'kichthuoc_freesize'];
289             $kichthuoc_1=$row[
'kichthuoc_1'];
290             $kichthuoc_2=$row[
'kichthuoc_2'];
291             $kichthuoc_3=$row[
'kichthuoc_3'];
292             $kichthuoc_4=$row[
'kichthuoc_4'];
293             $kichthuoc_5=$row[
'kichthuoc_5'];
294             $kichthuoc_6=$row[
'kichthuoc_6'];
295             $kichthuoc_7=$row[
'kichthuoc_7'];
296             $kichthuoc_8=$row[
'kichthuoc_8'];
297             $kichthuoc_9=$row[
'kichthuoc_9'];
298             $kichthuoc_10=$row[
'kichthuoc_10'];
299             $kichthuoc_11=$row[
'kichthuoc_11'];
300             $kichthuoc_12=$row[
'kichthuoc_12'];
301             $kichthuoc_S=$row[
'kichthuoc_S'];
302             $kichthuoc_M=$row[
'kichthuoc_M'];
303             $kichthuoc_L=$row[
'kichthuoc_L'];
304             $kichthuoc_XL=$row[
'kichthuoc_XL'];
305             $kichthuoc_XXL=$row[
'kichthuoc_XXL'];
306             $kichthuoc_XS=$row[
'kichthuoc_XS'];
307             $kichthuoc_XXS=$row[
'kichthuoc_XXS'];
308             $kichthuoc_2XL=$row[
'kichthuoc_2XL'];
309             $kichthuoc_3XL=$row[
'kichthuoc_3XL'];
310             $kichthuoc_4XL=$row[
'kichthuoc_4XL'];
311             $kichthuoc_5XL=$row[
'kichthuoc_5XL'];
312             $kichthuoc_6XL=$row[
'kichthuoc_6XL'];
313             $kichthuoc_25=$row[
'kichthuoc_25'];
314             $kichthuoc_26=$row[
'kichthuoc_26'];
315             $kichthuoc_27=$row[
'kichthuoc_27'];
316             $kichthuoc_28=$row[
'kichthuoc_28'];
317             $kichthuoc_29=$row[
'kichthuoc_29'];
318             $kichthuoc_30=$row[
'kichthuoc_30'];
319             $kichthuoc_31=$row[
'kichthuoc_31'];
320             $kichthuoc_32=$row[
'kichthuoc_32'];
321             $kichthuoc_33=$row[
'kichthuoc_33'];
322             $kichthuoc_34=$row[
'kichthuoc_34'];
323             $kichthuoc_35=$row[
'kichthuoc_35'];
324             $kichthuoc_36=$row[
'kichthuoc_36'];
325             $kichthuoc_37=$row[
'kichthuoc_37'];
326             $kichthuoc_38=$row[
'kichthuoc_38'];
327             $kichthuoc_39=$row[
'kichthuoc_39'];
328             $kichthuoc_40=$row[
'kichthuoc_40'];
329             $kichthuoc_41=$row[
'kichthuoc_41'];
330             $kichthuoc_42=$row[
'kichthuoc_42'];
331             $kichthuoc_43=$row[
'kichthuoc_43'];
332             $kichthuoc_44=$row[
'kichthuoc_44'];
333             $kichthuoc_45=$row[
'kichthuoc_45'];
334             $kichthuoc_46=$row[
'kichthuoc_46'];
335             $kichthuoc_47=$row[
'kichthuoc_47'];
336               $anh = explode(
",", $row['image']);
337         }
338     }
339 }
340
341 ?>
342
343 <pre id=
"idTemporary" name="idTemporary" style="display:none">
344 <?

345 if
(isset($desc))
346     {
347     $sContent=stripslashes($desc);
//remove slashes (/)
348     echo $sContent;
349     }
350 ?>
351 </pre>
352
353
354
355 <pre id=
"idTemporaryen" name="idTemporaryen" style="display:none">
356 <?

357 if
(isset($descen))
358     {
359     $sContent=stripslashes($descen);
//remove slashes (/)
360     echo htmlentities($sContent);
361     }
362 ?>
363 </pre>
364
365 <script language=
"Javascript1.2"><!-- // load htmlarea
366 _editor_url =
"htmlarea/"; // URL to htmlarea files
367 var
win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
368 if
(navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
369 if
(navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
370 if
(navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
371 if
(win_ie_ver >= 5.5) {
372   document.write(
'<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
373   document.write(
' language="Javascript1.2"></scr' + 'ipt>');
374 }
else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
375 // --></script>

376
377 <form method=
"post" name="FormLoaiSP" enctype="multipart/form-data" >
378 <input type=
"hidden" name="txtDesc" id="txtDesc">
379 <input type=
"hidden" name="txtDescen" id="txtDescen">
380 <input type=
"hidden" name="act" value="product_m">
381 <input type=
"hidden" name="id" value="<? echo $_REQUEST['id']; ?>">
382 <input type=
"hidden" name="page" value="<? echo $_REQUEST['page']; ?>">
383 <table border=
"1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#0069A8" width="100%" id="AutoNumber1">
384   <tr>
385     <td width=
"45%" class="title" align="center">Cập nhật :
386     Sản phẩm</td>
387   </tr>
388   <tr>
389     <td width=
"45%">
390     <table border=
"0" cellpadding="2" bordercolor="#111111" width="100%" id="AutoNumber2" cellspacing="0">
391     
392  
393
394         
395               <?php
if(file_exists($anh[0]))
396 {?>
397 <img
class="thumb" width="300" height="300" src="<?php echo $anh['0'];?>" />
398 <input id=
"imagefield1" class="thumbfield" type="hidden" value="<?php echo $anh['0'];?>" name="imagefield1">
399 <?}
else{?>
400 <img
class="thumb" width="300" height="300" src="/quantri/images/add-images.png" />
401
402 <?}?>
403
404
405               <!-- /.box-body -->
406
407              
408             
409       <tr>
410         <td width=
"1%" class="smallfont">
411         <p align=
"right">Mã s&#7843;n ph&#7849;m</td>
412         <td width=
"1%" class="smallfont" align="center">
413         <font color=
"#FF0000"></font></td>
414         <td width=
"83%" class="smallfont">
415         <INPUT
value="<? echo $code; ?>" TYPE="text" NAME="code" CLASS=textbox size="89"></td>
416       </tr>
417        <tr>
418         <td width=
"1%" class="smallfont" align="right">
419         Thuộc danh mục</td>
420         <td width=
"1%" class="smallfont" align="center">&nbsp;
421         </td>
422         <td width=
"83%" class="smallfont">
423  
424         <
select name="cat" >
425 <? $caaaa3=mysql_query(
"SELECT * FROM cat where id='".$row['cat']."' ");
426     $cataddd3=mysql_fetch_assoc($caaaa3);?>
427
428 <option
value="<? echo $cataddd3['id'];?>" selected><? echo $cataddd3['name'];?></option>
429
430   
431
432
433                         
434                         <? $timkiem=mysql_query(
"SELECT * FROM cat order by name desc");
435                         
while($row_timkiem=mysql_fetch_array($timkiem))
436                         {?>
437                         <option
value="<? echo $row_timkiem['id'];?>"><? echo $row_timkiem['name'];?></option>
438                         <?}?>
439                         
440                         </
select>
441         </td>
442       </tr>
443      <tr>
444         <td width=
"1%" class="smallfont">
445         <p align=
"right">Tên sản phẩm</td>
446         <td width=
"1%" class="smallfont" align="center">
447         <font color=
"#FF0000">*</font></td>
448         <td width=
"83%" class="smallfont">
449         <INPUT
value="<? echo $name; ?>" TYPE="text" NAME="name" CLASS=textbox size="89"></td>
450       </tr>
451      <tr>
452         <td width=
"1%" class="smallfont" align="right">
453       Lượt mua</td>
454         <td width=
"1%" class="smallfont" align="center">
455         &nbsp;</td>
456         <td width=
"83%" class="smallfont">
457         <INPUT
value="<? echo $row['nguoimua']; ?>" TYPE="text" NAME="nguoimua" CLASS=textbox size="34"></td>
458       </tr>
459        <tr>
460         <td width=
"1%" class="smallfont" align="right">
461         Lượt xem</td>
462         <td width=
"1%" class="smallfont" align="center">
463         &nbsp;</td>
464         <td width=
"83%" class="smallfont">
465         <INPUT
value="<? echo $row['view']; ?>" TYPE="text" NAME="view" CLASS=textbox size="34"></td>
466       </tr>
467      
468             <tr>
469         <td width=
"1%" class="smallfont" align="right">
470         Giá cũ</td>
471         <td width=
"1%" class="smallfont" align="center">
472         &nbsp;</td>
473         <td width=
"83%" class="smallfont">
474         <INPUT
value="<? echo $price; ?>" TYPE="text" NAME="txtPrice" CLASS=textbox size="34"></td>
475       </tr>
476             <tr>
477         <td width=
"1%" class="smallfont" align="right">
478         Giá bán</td>
479         <td width=
"1%" class="smallfont" align="center">
480         &nbsp;</td>
481         <td width=
"83%" class="smallfont">
482         <INPUT
value="<? echo $priceen; ?>" TYPE="text" NAME="txtPriceen" CLASS=textbox size="34"></td>
483       </tr>
484  
485   <tr>
486         <td width=
"1%" class="smallfont" align="right">
487         Shop bán</td>
488         <td width=
"1%" class="smallfont" align="center">
489         &nbsp;</td>
490         <td width=
"83%" class="smallfont">
491         <INPUT
value="<? echo $user; ?>" TYPE="text" NAME="user" CLASS=textbox size="34"> Chú ý: Thay đổi nhập đúng username Shop (Phân biệt chữ HOA và chữ Thường)</td>
492       </tr>
493       
494       <tr>
495         <td width=
"1%" class="smallfont" align="right">
496         Bảo hành</td>
497         <td width=
"1%" class="smallfont" align="center">
498         &nbsp;</td>
499         <td width=
"83%" class="smallfont">
500         <INPUT
value="<? echo $row['baohanh']; ?>" TYPE="text" NAME="baohanh" CLASS=textbox size="34"> </td>
501       </tr>
502       <tr>
503         <td width=
"1%" class="smallfont" align="right">
504         Status</td>
505         <td width=
"1%" class="smallfont" align="center">
506         &nbsp;</td>
507         <td width=
"83%" class="smallfont">
508         <INPUT
value="<? echo $row['status']; ?>" TYPE="text" NAME="status" CLASS=textbox size="34"> Nhập số 0 để sản phẩm được duyệt,Nhập số 1 để Hủy sản phẩm </td>
509       </tr>
510       <tr>
511         <td width=
"1%" class="smallfont" align="right">
512         Nỗi bật</td>
513         <td width=
"1%" class="smallfont" align="center">
514         &nbsp;</td>
515         <td width=
"83%" class="smallfont">
516         <INPUT
value="<? echo $row['noibat']; ?>" TYPE="text" NAME="noibat" CLASS=textbox size="34"> Nhập số 1 để Được Nổi Bật, Nhập số 0 để Hủy nổi bật</td>
517       </tr>
518       <tr>
519         <td width=
"1%" class="smallfont" align="right">
520         Tình trạng</td>
521         <td width=
"1%" class="smallfont" align="center">
522         &nbsp;</td>
523         <td width=
"83%" class="smallfont">
524         <INPUT
value="<? echo $row['tinhtrang']; ?>" TYPE="text" NAME="tinhtrang" CLASS=textbox size="34"> Nhập số 1 để còn hàng, Nhập số 0 để hết hàng</td>
525       </tr>
526       <tr>
527         <td width=
"1%" class="smallfont" align="right">
528         Khối lượng</td>
529         <td width=
"1%" class="smallfont" align="center">
530         &nbsp;</td>
531         <td width=
"83%" class="smallfont">
532         <INPUT
value="<? echo $row['khoiluong']; ?>" TYPE="text" NAME="khoiluong" CLASS=textbox size="34"> Khối lượng sản phẩm tính bằng Gam</td>
533       </tr>
534       <tr>
535         <td width=
"1%" class="smallfont" align="right">
536         Up Top</td>
537         <td width=
"1%" class="smallfont" align="center">
538         &nbsp;</td>
539         <td width=
"83%" class="smallfont">
540         <INPUT
value="<? echo $row['uptop']; ?>" TYPE="text" NAME="uptop" CLASS=textbox size="34"> Số lần UP TOP toàn hệ thống ưu tiên tìm kiếm,danh sách sản phẩm...</td>
541       </tr>
542       <tr>
543         <td width=
"1%" class="smallfont" align="right">
544        Up Đề Cử</td>
545         <td width=
"1%" class="smallfont" align="center">
546         &nbsp;</td>
547         <td width=
"83%" class="smallfont">
548         <INPUT
value="<? echo $row['upxuhuong']; ?>" TYPE="text" NAME="upxuhuong" CLASS=textbox size="34"> Số lần UP TOP đề cử tại trang chủ</td>
549       </tr>
550       <tr>
551         <td width=
"1%" class="smallfont" align="right">
552         Top Xu hướng</td>
553         <td width=
"1%" class="smallfont" align="center">
554         &nbsp;</td>
555         <td width=
"83%" class="smallfont">
556         <INPUT
value="<? echo $row['topxuhuong']; ?>" TYPE="text" NAME="topxuhuong" CLASS=textbox size="34"> Số lần UP TOP xu hướng tại trang chủ</td>
557       </tr>
558       <tr>
559         <td width=
"1%" class="smallfont" align="right">
560         Top khuyến mãi</td>
561         <td width=
"1%" class="smallfont" align="center">
562         &nbsp;</td>
563         <td width=
"83%" class="smallfont">
564         <INPUT
value="<? echo $row['topkhuyenmai']; ?>" TYPE="text" NAME="topkhuyenmai" CLASS=textbox size="34"> Số lần UP TOP khuyến mãi tại trang chủ</td>
565       </tr>
566
567       <tr>
568         <td width=
"1%" class="smallfont" align="right">
569         Màu sắc</td>
570         <td width=
"1%" class="smallfont" align="center">
571         &nbsp;</td>
572         <td width=
"83%" class="smallfont">
573          <div
class="checkbox">
574                     <label style=
"background: #804000;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu nâu">
575                      <input
class="minimal" type="checkbox" name="mausac_nau" value="ON" <? if ($mausac_nau>"1") echo 'checked' ?>>
576                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
577                     <label style=
"background: #ffff00;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu Vàng">
578                         <input
class="minimal" type="checkbox" name="mausac_vang" value="ON" <? if ($mausac_vang>"1") echo 'checked' ?>>
579                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
580                        <label style=
"background: #ffffff;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu trắng">
581                         <input
class="minimal" type="checkbox" name="mausac_trang" value="ON" <? if ($mausac_trang>"1") echo 'checked' ?>>
582                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
583                     <label style=
"background: #000000;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu đen">
584                        <input
class="minimal" type="checkbox" name="mausac_den" value="ON" <? if ($mausac_den>"1") echo 'checked' ?>>
585                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
586                     <label style=
"background: #ff00ff;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu hồng">
587                         <input
class="minimal" type="checkbox" name="mausac_hong" value="ON" <? if ($mausac_hong>"1") echo 'checked' ?>>
588                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
589                     <label style=
"background: #00ff00;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh lá">
590                          <input
class="minimal" type="checkbox" name="mausac_xanhla" value="ON" <? if ($mausac_xanhla>"1") echo 'checked' ?>>
591                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
592                     <label style=
"background: #0080ff;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu nước biển">
593                          <input
class="minimal" type="checkbox" name="mausac_xanhnuocbien" value="ON" <? if ($mausac_xanhnuocbien>"1") echo 'checked' ?>>
594                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
595                     <label style=
"background: #00ffff;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh ngọc">
596                         <input
class="minimal" type="checkbox" name="mausac_xanhngoc" value="ON" <? if ($mausac_xanhngoc>"1") echo 'checked' ?>>
597                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
598                     <label style=
"background: #112c4e;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh đen">
599                            <input
class="minimal" type="checkbox" name="mausac_xanhden" value="ON" <? if ($mausac_xanhden>"1") echo 'checked' ?>>
600                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
601                     <label style=
"background: #999999;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xám">
602                         <input
class="minimal" type="checkbox" name="mausac_xam" value="ON" <? if ($mausac_xam>"1") echo 'checked' ?>>
603                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
604                     <label style=
"background: #800080;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu tím">
605                         <input
class="minimal" type="checkbox" name="mausac_tim" value="ON" <? if ($mausac_tim>"1") echo 'checked' ?>>
606                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
607                     <label style=
"background: #ff0000;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu đỏ">
608                          <input
class="minimal" type="checkbox" name="mausac_do" value="ON" <? if ($mausac_do>"1") echo 'checked' ?>>
609                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
610                     <label style=
"background: #ff8040;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu cam">
611                        <input
class="minimal" type="checkbox" name="mausac_cam" value="ON" <? if ($mausac_cam>"1") echo 'checked' ?>>
612                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
613                     <label style=
"background: #fef1ce;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu kem">
614                         <input
class="minimal" type="checkbox" name="mausac_kem" value="ON" <? if ($mausac_kem>"1") echo 'checked' ?>>
615                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
616                     <label style=
"background: #0522c5;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh dương">
617                         <input
class="minimal" type="checkbox" name="mausac_xanhduong" value="ON" <? if ($mausac_xanhduong>"1") echo 'checked' ?>>
618                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
619                     <label style=
"background: url(/images/mul-color.gif) center center no-repeat;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu sọc">
620                         <input
class="minimal" type="checkbox" name="mausac_soc" value="ON" <? if ($mausac_soc>"1") echo 'checked' ?>>
621                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
622                     <label style=
"background: #007000;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh lá đậm">
623                         <input
class="minimal" type="checkbox" name="mausac_xanhladam" value="ON" <? if ($mausac_xanhladam>"1") echo 'checked' ?>>
624                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
625                     <label style=
"background: url(/images/floral.jpg) center center no-repeat;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu họa tiết">
626                          <input
class="minimal" type="checkbox" name="mausac_hoatiet" value="ON" <? if ($mausac_hoatiet>"1") echo 'checked' ?>>
627                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
628                     <label style=
"background: #cccccc; center center no-repeat;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu bạc">
629                         <input
class="minimal" type="checkbox" name="mausac_bac" value="ON" <? if ($mausac_bac>"1") echo 'checked' ?>>
630                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
631                     <label style=
"background: #ffc0cb; center center no-repeat;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu hồng phấn">
632                          <input
class="minimal" type="checkbox" name="mausac_hongphan" value="ON" <? if ($mausac_hongphan>"1") echo 'checked' ?>>
633                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
634                     
635                     
636                     
637                     
638                     
639                   </div></td>
640       </tr>
641
642
643       <tr>
644         <td width=
"1%" class="smallfont" align="right">
645         Kích thước</td>
646         <td width=
"1%" class="smallfont" align="center">
647         &nbsp;</td>
648         <td width=
"83%" class="smallfont">
649          <div
class="checkbox">
650            <div
class="checkbox">
651                     <label>
652                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_freesize" value="ON" <? if ($kichthuoc_freesize>"0") echo 'checked' ?>>
653                    Free Size
654                     </label>
655
656                   </div>
657                   <div
class="checkbox">
658                     <label>
659                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_1" value="ON" <? if ($kichthuoc_1>"0") echo 'checked' ?>>
660                    
1
661                     </label>
662                   </div>
663                    <div
class="checkbox">
664                     <label>
665                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_2" value="ON" <? if ($kichthuoc_2>"0") echo 'checked' ?>>
666                   
2
667                     </label>
668                   </div>
669                    <div
class="checkbox">
670                     <label>
671                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_3" value="ON" <? if ($kichthuoc_3>"0") echo 'checked' ?>>
672                    
3
673                     </label>
674                   </div>
675                    <div
class="checkbox">
676                     <label>
677                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_4" value="ON" <? if ($kichthuoc_4>"0") echo 'checked' ?>>
678                   
4
679                     </label>
680                   </div>
681                    <div
class="checkbox">
682                     <label>
683                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_5" value="ON" <? if ($kichthuoc_5>"0") echo 'checked' ?>>
684                    
5
685                     </label>
686                   </div>
687                    <div
class="checkbox">
688                     <label>
689                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_6" value="ON" <? if ($kichthuoc_6>"0") echo 'checked' ?>>
690                   
6
691                     </label>
692                   </div>
693                    <div
class="checkbox">
694                     <label>
695                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_7" value="ON" <? if ($kichthuoc_7>"0") echo 'checked' ?>>
696                   
7
697                     </label>
698                   </div>
699                     
700                     <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 105px;">
701                     <div
class="checkbox">
702                     <label>
703                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_8" value="ON" <? if ($kichthuoc_8>"0") echo 'checked' ?>>
704                   
8
705                     </label>
706
707                   </div>
708                   <div
class="checkbox">
709                     <label>
710                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_9" value="ON" <? if ($kichthuoc_9>"0") echo 'checked' ?>>
711                   
9
712                     </label>
713                   </div>
714                    <div
class="checkbox">
715                     <label>
716                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_10" value="ON" <? if ($kichthuoc_10>"0") echo 'checked' ?>>
717                    
10
718                     </label>
719                   </div>
720                    <div
class="checkbox">
721                     <label>
722                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_11" value="ON" <? if ($kichthuoc_11>"0") echo 'checked' ?>>
723                    
11
724                     </label>
725                   </div>
726                    <div
class="checkbox">
727                     <label>
728                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_12" value="ON" <? if ($kichthuoc_12>"0") echo 'checked' ?>>
729                  
12
730                     </label>
731                   </div>
732                    <div
class="checkbox">
733                     <label>
734                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_S" value="ON" <? if ($kichthuoc_S>"0") echo 'checked' ?>>
735                    S
736                     </label>
737                   </div>
738                    <div
class="checkbox">
739                     <label>
740                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_M" value="ON" <? if ($kichthuoc_M>"0") echo 'checked' ?>>
741                    M
742                     </label>
743                   </div>
744                    <div
class="checkbox">
745                     <label>
746                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_L" value="ON" <? if ($kichthuoc_L>"0") echo 'checked' ?>>
747                   L
748                     </label>
749                   </div>
750                   </div>
751                     
752                      <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 205px;">
753                     <div
class="checkbox">
754                     <label>
755                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_XL" value="ON" <? if ($kichthuoc_XL>"0") echo 'checked' ?>>
756                    XL
757                     </label>
758
759                   </div>
760                   <div
class="checkbox">
761                     <label>
762                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_XXL" value="ON" <? if ($kichthuoc_XXL>"0") echo 'checked' ?>>
763                     XXL
764                     </label>
765                   </div>
766                    <div
class="checkbox">
767                     <label>
768                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_XS" value="ON" <? if ($kichthuoc_XS>"0") echo 'checked' ?>>
769                    XS
770                     </label>
771                   </div>
772                    <div
class="checkbox">
773                     <label>
774                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_XXS" value="ON" <? if ($kichthuoc_XXS>"0") echo 'checked' ?>>
775                    XXS
776                     </label>
777                   </div>
778                    <div
class="checkbox">
779                     <label>
780                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_2XL" value="ON" <? if ($kichthuoc_2XL>"0") echo 'checked' ?>>
781                  2XL
782                     </label>
783                   </div>
784                    <div
class="checkbox">
785                     <label>
786                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_3XL" value="ON" <? if ($kichthuoc_3XL>"0") echo 'checked' ?>>
787                    3XL
788                     </label>
789                   </div>
790                    <div
class="checkbox">
791                     <label>
792                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_4XL" value="ON" <? if ($kichthuoc_4XL>"0") echo 'checked' ?>>
793                     4XL
794                     </label>
795                   </div>
796                    <div
class="checkbox">
797                     <label>
798                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_5XL" value="ON" <? if ($kichthuoc_5XL>"0") echo 'checked' ?>>
799                  5XL
800                     </label>
801                   </div>
802                   </div>
803                   <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 305px;">
804                     <div
class="checkbox">
805                     <label>
806                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_6XL" value="ON" <? if ($kichthuoc_6XL>"0") echo 'checked' ?>>
807                   6XL
808                     </label>
809
810                   </div>
811                   <div
class="checkbox">
812                     <label>
813                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_25" value="ON" <? if ($kichthuoc_25>"0") echo 'checked' ?>>
814                    
25
815                     </label>
816                   </div>
817                    <div
class="checkbox">
818                     <label>
819                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_26" value="ON" <? if ($kichthuoc_26>"0") echo 'checked' ?>>
820                    
26
821                     </label>
822                   </div>
823                    <div
class="checkbox">
824                     <label>
825                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_27" value="ON" <? if ($kichthuoc_27>"0") echo 'checked' ?>>
826                    
27
827                     </label>
828                   </div>
829                    <div
class="checkbox">
830                     <label>
831                    <input type=
"checkbox" class="minimal-red" name="kichthuoc_28" value="ON" <? if ($kichthuoc_28>"0") echo 'checked' ?>>
832                   
28
833                     </label>
834                   </div>
835                    <div
class="checkbox">
836                     <label>
837                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_29" value="ON" <? if ($kichthuoc_29>"0") echo 'checked' ?>>
838                    
29
839                     </label>
840                   </div>
841                    <div
class="checkbox">
842                     <label>
843                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_30" value="ON" <? if ($kichthuoc_30>"0") echo 'checked' ?>>
844                    
30
845                     </label>
846                   </div>
847                    <div
class="checkbox">
848                     <label>
849                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_31" value="ON" <? if ($kichthuoc_31>"0") echo 'checked' ?>>
850                    
31
851                     </label>
852                   </div>
853                   </div>
854                    <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 405px;">
855                     <div
class="checkbox">
856                     <label>
857                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_32" value="ON" <? if ($kichthuoc_32>"0") echo 'checked' ?>>
858                   
32
859                     </label>
860
861                   </div>
862                   <div
class="checkbox">
863                     <label>
864                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_33" value="ON" <? if ($kichthuoc_33>"0") echo 'checked' ?>>
865                    
33
866                     </label>
867                   </div>
868                    <div
class="checkbox">
869                     <label>
870                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_34" value="ON" <? if ($kichthuoc_34>"0") echo 'checked' ?>>
871                    
34
872                     </label>
873                   </div>
874                    <div
class="checkbox">
875                     <label>
876                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_35" value="ON" <? if ($kichthuoc_35>"0") echo 'checked' ?>>
877                   
35
878                     </label>
879                   </div>
880                    <div
class="checkbox">
881                     <label>
882                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_36" value="ON" <? if ($kichthuoc_36>"0") echo 'checked' ?>>
883                    
36
884                     </label>
885                   </div>
886                    <div
class="checkbox">
887                     <label>
888                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_37" value="ON" <? if ($kichthuoc_37>"0") echo 'checked' ?>>
889                    
37
890                     </label>
891                   </div>
892                    <div
class="checkbox">
893                     <label>
894                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_38" value="ON" <? if ($kichthuoc_38>"0") echo 'checked' ?>>
895                    
38
896                     </label>
897                   </div>
898                    <div
class="checkbox">
899                     <label>
900                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_39" value="ON" <? if ($kichthuoc_39>"0") echo 'checked' ?>>
901                    
39
902                     </label>
903                   </div>
904                   </div>
905                   <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 505px;">
906                     <div
class="checkbox">
907                     <label>
908                    <input type=
"checkbox" class="minimal-red" name="kichthuoc_40" value="ON" <? if ($kichthuoc_40>"0") echo 'checked' ?>>
909                    
40
910                     </label>
911
912                   </div>
913                   <div
class="checkbox">
914                     <label>
915                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_41" value="ON" <? if ($kichthuoc_41>"0") echo 'checked' ?>>
916                   
41
917                     </label>
918                   </div>
919                    <div
class="checkbox">
920                     <label>
921                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_42" value="ON" <? if ($kichthuoc_42>"0") echo 'checked' ?>>
922                    
42
923                     </label>
924                   </div>
925                    <div
class="checkbox">
926                     <label>
927                    <input type=
"checkbox" class="minimal-red" name="kichthuoc_43" value="ON" <? if ($kichthuoc_43>"0") echo 'checked' ?>>
928                    
43
929                     </label>
930                   </div>
931                    <div
class="checkbox">
932                     <label>
933                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_44" value="ON" <? if ($kichthuoc_44>"0") echo 'checked' ?>>
934                    
44
935                     </label>
936                   </div>
937                    <div
class="checkbox">
938                     <label>
939                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_45" value="ON" <? if ($kichthuoc_45>"0") echo 'checked' ?>>
940                    
45
941                     </label>
942                   </div>
943                    <div
class="checkbox">
944                     <label>
945                   <input type=
"checkbox" class="minimal-red" name="kichthuoc_46" value="ON" <? if ($kichthuoc_46>"0") echo 'checked' ?>>
946                    
46
947                     </label>
948                   </div>
949                    <div
class="checkbox">
950                     <label>
951                    <input type=
"checkbox" class="minimal-red" name="kichthuoc_47" value="ON" <? if ($kichthuoc_47>"0") echo 'checked' ?>>
952                    
47
953                     </label>
954                   </div>
955                   </div>
956                     
957                     
958                  </td>
959       </tr>
960       
961       
962       
963       
964
965       </tr>
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980         <tr>
981         <td width=
"1%" class="smallfont" align="right">
982         Mô t&#
7843; s&#7843;n ph&#7849;m</td>
983         <td width=
"1%" class="smallfont" align="center">
984         &nbsp;</td>
985         <td width=
"83%" class="smallfont">
986       <textarea id=
"desc" name="txtDesc" cols="80" rows="10" ><? echo $desc1; ?></textarea>
987                     <script>
988  
989            CKEDITOR.replace(
'desc' );
990  
991        </script>
992             
993         </td>
994       </tr>
995
996
997
998
999
1000  <tr>
1001         <td width=
"1%" class="smallfont" align="right">
1002         Từ khóa SEO</td>
1003         <td width=
"1%" class="smallfont" align="center">
1004         &nbsp;</td>
1005         <td width=
"83%" class="smallfont">
1006         <INPUT
value="<? echo $row['tukhoaseo']; ?>" TYPE="text" NAME="tukhoaseo" CLASS=textbox size="144"> </td>
1007       </tr>
1008
1009
1010  <tr>
1011         <td width=
"1%" class="smallfont" align="right">
1012         Tiêu đề SEO</td>
1013         <td width=
"1%" class="smallfont" align="center">
1014         &nbsp;</td>
1015         <td width=
"83%" class="smallfont">
1016         <INPUT
value="<? echo $row['tieudeseo']; ?>" TYPE="text" NAME="tieudeseo" CLASS=textbox size="144"> </td>
1017       </tr>
1018
1019
1020
1021  <tr>
1022         <td width=
"1%" class="smallfont" align="right">
1023         Mô tả SEO</td>
1024         <td width=
"1%" class="smallfont" align="center">
1025         &nbsp;</td>
1026         <td width=
"83%" class="smallfont">
1027            <textarea name=
"motaseo" cols="124" rows="5" ><? echo $row['motaseo']; ?></textarea> </td>
1028       </tr>
1029
1030
1031
1032      
1033        
1034      
1035        
1036        
1037       <tr>
1038         <td width=
"1%" class="smallfont">
1039         <p align=
"right">
1040         <INPUT TYPE=
"submit" NAME="butSaveLoai" VALUE="C&#7853;p nh&#7853;t" CLASS=button onclick="submitForm()">&nbsp;</td>
1041         <td width=
"1%" class="smallfont" align="center">
1042         &nbsp;</td>
1043  
1044       </tr>
1045     </table>
1046     </td>
1047   </tr>
1048   </table>
1049 </form>



Full source code website bán hàng thương mại điện tử gần giống shopee 468.852 lượt xem

Gõ tìm kiếm nhanh...